/**
 * Copyright 2005 The Apache Software Foundation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.edi.client.param;

import java.util.ArrayList;
import java.util.List;

/**
 * 服务器端调用脚本时所使用的服务器端参数类
 * 避免在服务器端调用ServerParam对象时需要构造一个XML文件
 * 目前暂时设计为EdiServerParam仅仅调用SPO，如果
 * 未来可能在服务器端调用TPO、EPO或者WPO的情况，应改写
 * 这个类，使之成为父类存在
 *
 */
public class EdiServerParam {
	private List<Object> params;
	private String serviceName;
	
	public EdiServerParam(){
		params = new ArrayList<Object>();
	}	
	
	public EdiServerParam(List<Object> params,String serverName){
		this.params = params;
		this.serviceName = serverName;
	}

	public List<Object> getParams() {
		return params;
	}

	public void setParams(List<Object> params) {
		this.params = params;
	}

	public String getServiceName() {
		return serviceName;
	}

	public void setServiceName(String serviceName) {
		this.serviceName = serviceName;
	}
	
	public void addParam(Object param){
		this.params.add(param);
	}
}
